package com.hoas.quickstart.threads.chapter02.chapter02_2_12_01;

public class Run {

    public static void main(String[] args) {
        DealThread t1 = new DealThread();
        t1.setFlag("a");
        Thread thread1 = new Thread( t1 );
        thread1.start();

        try {
            Thread.sleep(200);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        t1.setFlag("b");
        Thread thread2 = new Thread( t1 );
        thread2.start();

    }

}
